﻿#region File Description
// --------------------------------
// <copyright file="ClipLayer.cs" company="Faculty of Information Technology, Czech Technical University in Prague">
//     This document is shared by Microsoft Public License (MS-PL)
//     For further details please see http://msdn.microsoft.com/en-us/library/ff648068.aspx or license.txt.
// </copyright>
// <author>Vladislav Richter</author>

// <email>richtvl2@fit.cvut.cz</email>

// <date>9. 11. 2011 22:22:37</date>

// <summary>
// 
// </summary>
// ------------------------------------------------------------------------------------------------------
#endregion
using System;

namespace ExternalClasses.Animations
{
    public class ClipLayer
    {
        public AnimationLayer Layer;
        public AnimationClip Clip;
        public TimeSpan ClipTime, Time;
        public int Keyframe;
        public float Progress;
        public bool Running;
        public bool RunOnce;

        public ClipLayer(AnimationLayer al)
        {
            Layer = al;
        }

        public void Reset(AnimationClip clip, bool Once)
        {
            Clip = clip;
            ClipTime = TimeSpan.Zero;
            Time = TimeSpan.Zero;
            Keyframe = 0;
            Progress = 0.0f;
            Running = true;
            RunOnce = Once;
        }
    }
}
